package com.huaxun.edu.ucc.impl;

import java.util.List;

import org.springframework.transaction.support.TransactionTemplate;

import net.optix.common.app.ExecuteResult;
import net.optix.common.db.IBaseDAO;

import com.huaxun.edu.model.TBE_BJ;
import com.huaxun.edu.ucc.IBJUCC;

public class BJUCC implements IBJUCC {

	private IBaseDAO baseDAO;

	private TransactionTemplate transTemplate;

	@Override
	public List<TBE_BJ> findAllBJs(String xxdm) {
		return baseDAO.query("select * from TBE_BJ where xxdm=?",
				new Object[] { xxdm }, TBE_BJ.class, 0, 0);
	}

	@Override
	public TBE_BJ findBJ(String xxdm, String bh) {
		return null;
	}

	@Override
	public ExecuteResult saveBJ(String xxdm, String bh, TBE_BJ bj) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ExecuteResult addBJ(String xxdm, String bh, TBE_BJ bj) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ExecuteResult deleteBJ(String xxdm, String bh) {
		// TODO Auto-generated method stub
		return null;
	}

	public IBaseDAO getBaseDAO() {
		return baseDAO;
	}

	public void setBaseDAO(IBaseDAO baseDAO) {
		this.baseDAO = baseDAO;
	}

	public TransactionTemplate getTransTemplate() {
		return transTemplate;
	}

	public void setTransTemplate(TransactionTemplate transTemplate) {
		this.transTemplate = transTemplate;
	}

}